import model from '../model/catalogue'

// 查询目录
export const getCatalogues = (req, res) => {
  return model.getCatalogues()
}

// 新增目录
export const addCatalogue = (req, res) => {
  return model.addCatalogue({newCatalogue: req.body})
}

// 更改目录名称
export const renameCatalogue = (req, res) => {
  return model.renameCatalogue(req.body)
}

// 移动目录
export const moveCatalogue = (req, res) => {
  return model.moveCatalogue(req.body)
}
